package com.qf.main.login.token;

import lombok.Getter;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author chengqiang
 * @Create 2024-01-23-21:26
 * @Description:
 */
@Getter
public class LocalUsernamePasswordToken extends UsernamePasswordToken {
    /**
     * 远端的IP
     */
    private String remoteIp;
    private String function;
    // private UserCategoryEnum belongUser;
    public LocalUsernamePasswordToken(String username, String password, String remoteIp) {
        super(username, password);
        // this.remoteIp = remoteIp;
        // this.belongUser = belongUser;
    }

    public LocalUsernamePasswordToken(String username, String password, String remoteIp, String function) {
        super(username, password);
        this.remoteIp = remoteIp;
        this.function = function;
        // this.belongUser = belongUser;
    }
}
